<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body onload="previewImg(1);">
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="12">

<@p.td colspan="1" width="50" label="车量名称" >${usedCar.title!}</@p.td>
<@p.td colspan="1" width="50" label="shopInfo.shopName" >${usedCar.shop.shopName!}</@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="行驶里程" >${usedCar.mileage!}</@p.td>
<@p.td colspan="1" width="50" label="品牌" ><#if usedCar.otherCarType=="">${usedCar.carBrand.brandName!}<#else></#if></@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="价格" >${usedCar.price!}</@p.td>
<@p.td colspan="1" width="50" label="车系" ><#if usedCar.otherCarType=="">${usedCar.carSeries.seriesName!}<#else></#if></@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="地址" >${usedCar.address!}</@p.td>
<@p.td colspan="1" width="50" label="新车车型" ><#if usedCar.otherCarType=="">${usedCar.carType.typeName!}<#else></#if></@p.td><@p.tr/>

<@p.td colspan="2" width="50" label="其它车型" >${usedCar.otherCarType!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="是否包过户" ><#if usedCar.transOwner==1>是<#else>否</#if></@p.td>
<@p.td colspan="1" width="50" label="新车总价" >${usedCar.ori_price!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="变速箱" >${usedCar.gearbox!}</@p.td>
<@p.td colspan="1" width="50" label="排量" >${usedCar.output!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="注册日期" >${usedCar.registDate!}</@p.td>
<@p.td colspan="1" width="50" label="保险到期" >${usedCar.insuranceExp!}</@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="年检到期" >${usedCar.motExp!}</@p.td>
<@p.td colspan="1" width="50" label="车辆来源" >${usedCar.carSource!}</@p.td><@p.tr/>

<@p.td colspan="1" width="50" label="保养情况 " >${usedCar.maintain!}</@p.td>
<@p.td colspan="1" width="50" label="车辆类型" >${usedCar.opertional!}</@p.td><@p.tr/>
<@p.td colspan="2" width="50" label="卖家描述" >${usedCar.sellerDesc!}</@p.td><@p.tr/>
<@p.td colspan="1" width="50" label="联系人 " >${usedCar.linkPerson!}</@p.td>
<@p.td colspan="1" width="50" label="联系人电话" >${usedCar.linkMobile!}</@p.td><@p.tr/>
<!-- 上传图片 -->
<@p.td label="图片" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="imgUrl" value=usedCar.imgUrl style="width:220px" class="required"  required="true"/>
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<!-- 图片end -->

<!-- 批量上传 开始 -->
<@p.td label="批量上传" colspan="2" noHeight="true">
<div>
<#list usedCar.carImgs as p>
<table id="picTable${p_index+3}" border="0" style="float:left;">
<tr>
	<td>URL:
		<div>${p.imgUrl} </div><br/>
		图片名：
		<div>${p.imgName!}</div>
	</td>
	<td><img id="preImg${p_index+3}" src="${p.imgUrl}" alt="<@s.m "imageupload.preview"/>" noResize="true" style="width:110px;height:110px;background-color:#ccc;border:1px solid #333"/></td>
</tr>
</table>
<input type="hidden" name="oldpicPaths" value="${p.imgUrl!}"/>
</#list>
<script type="text/javascript">
var picIndex = ${usedCar.carImgs?size} + 3;
var picTpl = $.format($("#picTable").val());
function addPicLine() {
	$('#picBefore').before(picTpl(picIndex++));
}
</script>
</@p.td>
<!-- 批量上传结束 -->
</@p.form>
</div>
</body>
</html>